package yx1;

import java.io.Serializable;
import java.util.Date;

public class WeeklyLog implements Cloneable, Serializable {
	private static final long serialVersionUID = 76330401365204482L;

	public Attachment Attachment;//附件类
	public String Name;//名称
	public Date Date;//日期
	public String Content;//内容

	//克隆方法
	public WeeklyLog Clone() {
		WeeklyLog wl = null;
		try {
			wl = (WeeklyLog)super.clone();
			wl.Attachment=this.Attachment;
			String name = new String(Name);
			wl.Name=name;
			wl.Date= this.Date;

			wl.Content= Content;
		}catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return wl;
	}

	public Attachment getAttachment() {
		return Attachment;
	}
	public void setAttachment(Attachment attachment) {
		Attachment = attachment;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	
	public java.util.Date getDate() {
		return Date;
	}
	public void setDate(java.util.Date date) {
		Date = date;
	}
	public String getContent() {
		return Content;
	}
	public void setContent(String content) {
		Content = content;
	}

	@Override
	public String toString() {
		return "WeeklyLog{" +
				"Attachment=" + Attachment +
				", Name='" + Name + '\'' +
				", Date=" + Date +
				", Content='" + Content + '\'' +
				'}';
	}
}
